.prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: prompt-fade-in 0.2s ease-out;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  transform: translateZ(0); /* 创建新的层叠上下文，避免受父元素transform影响 */
}

@keyframes prompt-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.prompt-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
              0 8px 24px rgba(0, 0, 0, 0.15);
  max-width: 420px;
  width: 90%;
  padding: 32px;
  animation: prompt-scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  margin: auto;
  transform: translateZ(0); /* 确保独立层叠上下文 */
}

@keyframes prompt-scale-in {
  from {
    opacity: 0;
    transform: scale(0.8) translateZ(0);
  }
  to {
    opacity: 1;
    transform: scale(1) translateZ(0);
  }
}

.prompt-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0ff 100%);
  color: #007AFF;
}

.prompt-content {
  text-align: center;
  margin-bottom: 28px;
}

.prompt-title {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 12px 0;
}

.prompt-message {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 20px 0;
}

.prompt-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e5e7;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.prompt-input:focus {
  border-color: #007AFF;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.prompt-input::placeholder {
  color: #999;
}

.prompt-actions {
  display: flex;
  gap: 12px;
}

.prompt-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.prompt-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prompt-btn-cancel {
  background: #f5f5f7;
  color: #1d1d1f;
}

.prompt-btn-cancel:hover:not(:disabled) {
  background: #e8e8ed;
}

.prompt-btn-cancel:active:not(:disabled) {
  transform: scale(0.98);
}

.prompt-btn-confirm {
  background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
  color: white;
}

.prompt-btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #0051D5 0%, #003CB0 100%);
}

.prompt-btn-confirm:active:not(:disabled) {
  transform: scale(0.98);
}

/* 响应式 */
@media (max-width: 768px) {
  .prompt-modal {
    max-width: 340px;
    padding: 24px;
  }

  .prompt-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
    margin-bottom: 20px;
  }

  .prompt-title {
    font-size: 18px;
  }

  .prompt-message {
    font-size: 14px;
  }

  .prompt-actions {
    flex-direction: column-reverse;
  }

  .prompt-btn {
    width: 100%;
  }
}

